<!doctype html>
<html class="no-js" lang="">

<!--<head>-->
  <!--<meta charset="utf-8">-->
  <!--<meta http-equiv="x-ua-compatible" content="ie=edge">-->
  <!--<title>个人信息</title>-->
  <!--<meta name="description" content="">-->
  <!--<meta name="viewport" content="width=device-width, initial-scale=1">-->

  <!--<link rel="manifest" href="site.webmanifest">-->
  <!--<link rel="apple-touch-icon" href="../icon.png">-->
  <!--&lt;!&ndash; Place favicon.ico in the root directory &ndash;&gt;-->
  <!--<link rel="shortcut icon" href="../favicon.ico">-->
  <!--<link rel="stylesheet" href="../css/reset.css">-->
  <!--<link rel="stylesheet" href="../css/weui.css">-->
  <!--<link rel="stylesheet" href="../css/styles.css">-->
  <!--<script src="../js/vendor/flexible.js"></script>-->
<!--</head>-->

{include file="boot/header" title="个人信息" description="" /}
<body>
  <!--[if lte IE 9]>
            <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
        <![endif]-->

  <!-- Add your site or application content here -->
  <div class="user_info page_container top_space">
    <form class="info_form" method="POST" action="">
      <div href="" class="form_item avatar_card">
        <span>头像</span>
        <label for="">
          <img src="{$info.wxUsers.headimgurl}" {if empty($info.wxUsers) || !$info.wxUsers.headimgurl} style="display: none;" {/if} class="img" alt="avatar">

          <img src="/static/img/add.png" class="add" {if !empty($info.wxUsers) && $info.wxUsers.headimgurl} style="display: none;" {/if} alt="add">

        </label>
        <input id="avatar_img" type="file" hidden accept="image/*" onchange="userUploadImage(this,'auth')" />
        <input type="text" hidden name="avatar_img" value="{$info.wxUsers.headimgurl}" />
      </div>
      <div class="form_item">
        <span>姓名ID</span>
        <p class="noedit">{$info.username_alias}</p>
        <input type="text" class="editing" name="username" value="{$info.username_alias}" readonly/>
      </div>
      <div class="form_item">
        <span>微信收款二维码</span>
        <p>
          <label for="">
            <!--<img src="{$info.user_attribute.wx_code}" alt="qrcode">-->
            <img src="{$info.user_attribute.wx_code}" {if !$info.user_attribute.wx_code} style="display: none;" {/if} class="img" alt="qrcode">

            <img src="/static/img/add.png" class="add" {if $info.user_attribute.wx_code} style="display: none;"{/if} alt="add">

          </label>
          <input id="qrcode_img" type="file" hidden accept="image/*" onchange="userUploadImage(this,'auth')"/>
          <input type="text" hidden name="qrcode_img" value="{$info.user_attribute.wx_code}" />
        </p>
      </div>
      <div class="form_item">
        <span>手机号码</span>
        <p class="noedit">{$info.mobile}</p>
        <input type="text" class="editing" name="mobile" value="{$info.mobile}" />
      </div>
      <div class="form_item">
        <span>身份证号</span>
        <p class="noedit">{$info.user_attribute.card_no}</p>
        <input type="text" class="editing" name="card_no" value="{$info.user_attribute.card_no}" />
      </div>
      <div class="form_item idcard">
        <span>身份证照</span>
        <label for="">
 
          <img src="{$info.user_attribute.card_pic}" {if !$info.user_attribute.card_pic} style="display: none;" {/if} class="img" alt="idcard">
   
          <img src="/static/img/add.png" class="add" {if $info.user_attribute.card_pic} style="display: none;" {/if} alt="add">
        
        </label>
        <input id="idcard_img" type="file" hidden accept="image/*" onchange="userUploadImage(this,'id')"/>
        <input type="text" hidden name="idcard_img" value="{$info.user_attribute.card_pic}" />
      </div>
    </form>
    {if $info.authReal.auth_status!=2}
    <a href="javascript: void(0)" class="weui-btn weui-btn_primary main_button noedit" onclick="eidtUserInfo()">编辑</a>
    <a href="javascript: void(0)" class="weui-btn weui-btn_primary main_button editing" onclick="editUserAction()">提交</a>
    <a href="javascript: void(0)" class="weui-btn weui-btn_warn main_button editing" onclick="cancleEdit()">取消</a>
    {/if}
  </div>

  <!--<script src="../js/vendor/jquery-3.2.1.min.js"></script>-->
  <!--<script src="../js/vendor/weui.min.js"></script>-->
  <!--<script src="../js/main.js"></script>-->

  {include file="boot/foot"/}
</body>

</html>
